package com.ruoyi.hr.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 测试员工信息对象 hr_employee_info
 * 
 * @author ruoyi
 * @date 2022-07-08
 */
public class HrEmployeeInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 工号 */
    @Excel(name = "工号")
    private String employeeCode;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String employeeIdnum;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date employeeBirthday;

    /** 工资 */
    @Excel(name = "工资")
    private BigDecimal employeeSalary;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer employeeSort;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private Integer version;

    /** 创建者ID */
    @Excel(name = "创建者ID")
    private String createId;

    /** 更新者ID */
    @Excel(name = "更新者ID")
    private String updateId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEmployeeCode(String employeeCode) 
    {
        this.employeeCode = employeeCode;
    }

    public String getEmployeeCode() 
    {
        return employeeCode;
    }
    public void setEmployeeIdnum(String employeeIdnum) 
    {
        this.employeeIdnum = employeeIdnum;
    }

    public String getEmployeeIdnum() 
    {
        return employeeIdnum;
    }
    public void setEmployeeBirthday(Date employeeBirthday) 
    {
        this.employeeBirthday = employeeBirthday;
    }

    public Date getEmployeeBirthday() 
    {
        return employeeBirthday;
    }
    public void setEmployeeSalary(BigDecimal employeeSalary) 
    {
        this.employeeSalary = employeeSalary;
    }

    public BigDecimal getEmployeeSalary() 
    {
        return employeeSalary;
    }
    public void setEmployeeSort(Integer employeeSort) 
    {
        this.employeeSort = employeeSort;
    }

    public Integer getEmployeeSort() 
    {
        return employeeSort;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setVersion(Integer version) 
    {
        this.version = version;
    }

    public Integer getVersion() 
    {
        return version;
    }
    public void setCreateId(String createId) 
    {
        this.createId = createId;
    }

    public String getCreateId() 
    {
        return createId;
    }
    public void setUpdateId(String updateId) 
    {
        this.updateId = updateId;
    }

    public String getUpdateId() 
    {
        return updateId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("employeeCode", getEmployeeCode())
            .append("employeeIdnum", getEmployeeIdnum())
            .append("employeeBirthday", getEmployeeBirthday())
            .append("employeeSalary", getEmployeeSalary())
            .append("employeeSort", getEmployeeSort())
            .append("status", getStatus())
            .append("version", getVersion())
            .append("createId", getCreateId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateId", getUpdateId())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
